Skip to main content

mediaFoundationReaderStreamGetNativeMediaType

Type​

function

Summary​

Get the ID of the native media type of a reader stream Platform:desktop

Syntax​

mediaFoundationReaderStreamGetNativeMediaType(<pFilePath>, <pStreamIndex>)

Description​

The reader must already be created with mediaFoundationCreateReader. Call mediaFoundationDeleteMediaType with the returned ID when your script no longer needs to access the media type.

*Note

*:See the mediaFoundationTranscode documentation for a complete example of using this handler.

Parameters​

NameTypeDescription

pFilePath

string

The path to a media file

pStreamIndex

integer

An integer between 1 and the number of streams

command: mediaFoundationTranscode, mediaFoundationCreateReader, mediaFoundationDeleteMediaType

Compatibility and Support​

OS

windows

Thank you for your feedback!

Was this page helpful?